.PHONY:connection
connection:connection.cpp ../mqcommon/mq_meg.pb.cc ../mqcommon/mq_proto.pb.cc
	g++ -o $@ $^ -std=c++17 -lprotobuf -lgtest -lsqlite3 -I../third/include
channeltest:channeltest.cpp ../mqcommon/mq_meg.pb.cc ../mqcommon/mq_proto.pb.cc
	g++ -o $@ $^ -std=c++17 -lprotobuf -lgtest -lsqlite3 -I../third/include
consumertest:consumertest.cpp ../mqcommon/mq_meg.pb.cc
	g++ -o $@ $^ -std=c++17 -lprotobuf -lgtest -lsqlite3
routetest:routetest.cpp ../mqcommon/mq_meg.pb.cc
	g++ -o $@ $^ -std=c++17 -lprotobuf -lgtest -lsqlite3
hosttest:hosttest.cpp ../mqcommon/mq_meg.pb.cc
	g++ -o $@ $^ -std=c++17 -lprotobuf -lgtest -lsqlite3
msgtest:msgtest.cpp ../mqcommon/mq_meg.pb.cc
	g++ -o $@ $^ -std=c++17 -lprotobuf -lgtest -lsqlite3
bindingtest:bindingtest.cpp
	g++ -o $@ $^ -std=c++17 -lprotobuf -lgtest -lsqlite3
queuetest:queuetest.cpp
	g++ -o $@ $^ -std=c++17 -lprotobuf -lgtest -lsqlite3
exchangetest:exchangetest.cpp
	g++ -o $@ $^ -std=c++17 -lprotobuf -lgtest -lsqlite3
filetest:filetest.cpp
	g++ -o $@ $^ -std=c++11
.PHONY:clean
clean:
	rm -f filetest exchangetest queuetest bindingtest msgtest hosttest routetest consumertest connection channeltest